class Book {
  String? bookIsbn;
  String? bookAuthor;
  String? bookIntroduce;
  String? bookTitle;
  String? bookSource;
  String? bookPress;
  String? bookPublicationYear;
  String? bookTag;
  String? bookDetailsJsonUrl;
  String? bookCover;
  int? bookId;

  Book(
      {this.bookIsbn,
      this.bookAuthor,
      this.bookIntroduce,
      this.bookTitle,
      this.bookSource,
      this.bookPress,
      this.bookPublicationYear,
      this.bookTag,
      this.bookDetailsJsonUrl,
      this.bookCover,
      this.bookId});

  Book.fromJson(Map<String, dynamic> json) {
    if (json["bookIsbn"] is String) {
      bookIsbn = json["bookIsbn"];
    }
    if (json["bookAuthor"] is String) {
      bookAuthor = json["bookAuthor"];
    }
    if (json["bookIntroduce"] is String) {
      bookIntroduce = json["bookIntroduce"];
    }
    if (json["bookTitle"] is String) {
      bookTitle = json["bookTitle"];
    }
    if (json["bookSource"] is String) {
      bookSource = json["bookSource"];
    }
    if (json["bookPress"] is String) {
      bookPress = json["bookPress"];
    }
    if (json["bookPublicationYear"] is String) {
      bookPublicationYear = json["bookPublicationYear"];
    }
    if (json["bookTag"] is String) {
      bookTag = json["bookTag"];
    }
    if (json["bookDetailsJsonUrl"] is String) {
      bookDetailsJsonUrl = json["bookDetailsJsonUrl"];
    }
    if (json["bookCover"] is String) {
      bookCover = json["bookCover"];
    }
    if (json["bookId"] is int) {
      bookId = json["bookId"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["bookIsbn"] = bookIsbn;
    _data["bookAuthor"] = bookAuthor;
    _data["bookIntroduce"] = bookIntroduce;
    _data["bookTitle"] = bookTitle;
    _data["bookSource"] = bookSource;
    _data["bookPress"] = bookPress;
    _data["bookPublicationYear"] = bookPublicationYear;
    _data["bookTag"] = bookTag;
    _data["bookDetailsJsonUrl"] = bookDetailsJsonUrl;
    _data["bookCover"] = bookCover;
    _data["bookId"] = bookId;
    return _data;
  }

  @override
  String toString() {
    return 'Book{bookIsbn: $bookIsbn, bookAuthor: $bookAuthor, bookIntroduce: $bookIntroduce, bookTitle: $bookTitle, bookSource: $bookSource, bookPress: $bookPress, bookPublicationYear: $bookPublicationYear, bookTag: $bookTag, bookDetailsJsonUrl: $bookDetailsJsonUrl, bookCover: $bookCover, bookId: $bookId}';
  }
}
